

using System;
using System.Collections.Generic;
using System.Text;
using DataAccessLayer;
using EntityLayer;
using DataLayer;
using System.Data;
using InfraStructureLayer;

namespace BusinessLayer
{
	public class busClickThroughs:BusinessBase
	{
		public busClickThroughs() : base()
		{
		}
		
		public void InsertClickThroughs(entClickThroughs parEntClickThroughs)
		{
			datClickThroughs insDatClickThroughs=null;
				DbConnector insDbConnector = new DbConnector();
			try
			{
				insDatClickThroughs = new datClickThroughs();
	
				insDatClickThroughs.InsertClickThroughs(parEntClickThroughs, insDbConnector);
			}
			catch (SFException ex)
			{
				this.ErrorMessage=ex.Message;
			}
		}

        public DataTable ReportClickThroughsMain(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datClickThroughs insDatClickThroughs = new datClickThroughs();
                return insDatClickThroughs.ReportClickThroughsMain(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public DataTable ReportClickThroughsDetail(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datClickThroughs insDatClickThroughs = new datClickThroughs();
                return insDatClickThroughs.ReportClickThroughsDetail(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
	}
}